package org.dromara.wmscloud.domain.bo;

import org.dromara.wmscloud.domain.StockInDetail;
import org.dromara.wmscloud.domain.StockInOrder;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.util.List;

/**
 * 入库单业务对象 stock_in_order
 *
 * @author hou
 * @date 2025-04-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = StockInOrder.class, reverseConvertGenerate = false)
public class StockInOrderBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long orderId;

    /**
     * 单据号
     */
    private String orderNo;

    /**
     * 单据类型
     */
    private String orderType;

    /**
     * 单据状态
     */
    private String orderStatus;

    /**
     * 检验状态
     */
    private String checkStatus;

    /**
     * 检验员
     */
    private String checkBy;

    /**
     * 入库单详情
     */
    private List<StockInDetail> detailList;
}
